<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../taglibs.jsp" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Echarts Test</title>
</head>
<body>
   <!-- 为ECharts准备一个具备大小（宽高）的Dom -->
    <div id="main" style="width: 600px;height:400px;"></div>
  <!-- 引入 ECharts 文件 -->
    <script src="${path}/static/front/js/echarts.js"></script>
    <script type="text/javascript">
        // 基于准备好的dom，初始化echarts实例
        var myChart = echarts.init(document.getElementById('main'));
        // 指定图表的配置项和数据
        var option = {
            title: {
                text: '商品数量'
            },
            tooltip: {},
            legend: {
                data:['数量']
            },
            xAxis: {
                data: ["Apple iPhone 7 ","Midea/美的 BCD冰箱","Huawei/华为 nova 手机","Haier/海尔 滚筒洗衣机","中国联通100M宽带包年","P2000(StatTrak™)|电子脉冲","大力丸"]
            },
            yAxis: {},
            series: [{
                name: '库存',
                type: 'bar',
                data: [288, 80, 150, 230, 198, 76, 50]
            }]
        };
        // 使用刚指定的配置项和数据显示图表。
        myChart.setOption(option);
    </script>
</body>
</html>